<?php
require_once 'Abstracts.php';

class LogsModel extends Abstracts{

    /*对局日志总数*/
    public function LogsCount($where){
       $sql = " SELECT count(id) AS c FROM pk_user_game_log ".$where;
       $query = $this->query($sql);
       $data = $query->row_array();
       return $data['c']?$data['c']:0;
    }    
    
    /*日志总数*/
    
    public function LogCount($where){
       $sql = " SELECT count(id) AS c FROM pk_log ".$where;
       $query = $this->query($sql);
       $data = $query->row_array();
       return $data['c']?$data['c']:0;
    }   
}